package org.demo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author yexi
 */
public class TestClass {

    private static final Logger log = LoggerFactory.getLogger(TestClass.class);

    static {
        log.info("该TestClass类被加载进内存(由于getLogger时就加载了一次字节码所以会输出两次)");
    }

    public static void main(String[] args) {

    }

}
